package com.techstar.ats.type;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum TrainType implements Enumerated {
	PLAN(1, "计划车"),
	WHARF(2, "码头车"),
	MO(4, "MO车"),
	MM(8, "MM车");
	private final int value;
	private final String literal;

	@Override
	public int value() {
		return value;
	}

	public String literal() {
		return this.literal;
	}

	public static TrainType valueOf(int value) {
		return Enumerated.valueOf(TrainType.class, value);
	}
}
